﻿//============================================================
//write by bxl at 2021-06-13 20:53:11
//============================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCDto.CRM.BigCustomerTradeRecord
{
    /// <summary>
    /// 大客户交易记录 数据模型
    /// </summary> 
    public class BigCustomerTradeRecordDto
    { 
        /// <summary>
        /// 大客户交易记录Id
        /// </summary>
        public long BigCustomerTradeRecordId { get; set; }

        /// <summary>
        /// 大客户Id
        /// </summary>
        public long BigCustomerId { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 业务人员Id
        /// </summary>
        public long AdminId { get; set; }

        /// <summary>
        /// 交易订单Id
        /// </summary>
        public long TradeOrderId { get; set; }

        /// <summary>
        /// 交易订单标题
        /// </summary>
        public string TradeOrderTitle { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        public decimal TradeAmount { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TradeTime { get; set; }

        /// <summary>
        /// 交易合同编号
        /// </summary>
        public string TradeContractNo { get; set; }

        /// <summary>
        /// 交易满意度
        /// </summary>
        public decimal? TradeSatisfaction { get; set; }

        /// <summary>
        /// 有投诉
        /// </summary>
        public bool? HasComplaint { get; set; }

        /// <summary>
        /// 有维修
        /// </summary>
        public bool? HasRepair { get; set; }

        /// <summary>
        /// 有退货
        /// </summary>
        public bool? HasReturnGoods { get; set; }

        /// <summary>
        /// 退货数量
        /// </summary>
        public int? ReturnGoodsCount { get; set; }

        /// <summary>
        /// 退货总金额
        /// </summary>
        public decimal? ReturnGoodsAmount { get; set; }

        /// <summary>
        /// 维修总金额
        /// </summary>
        public decimal? RepairAmount { get; set; }

        /// <summary>
        /// 维修原因
        /// </summary>
        public string RepairCause { get; set; }

        /// <summary>
        /// 维修结束时间
        /// </summary>
        public DateTime? RepairEndTime { get; set; }

        /// <summary>
        /// 维修人Id
        /// </summary>
        public long? RepairAdminId { get; set; }

        /// <summary>
        /// 维修人姓名
        /// </summary>
        public string RepairAdminName { get; set; }

        /// <summary>
        /// 是销售方责任维修
        /// </summary>
        public bool? IsUsRepairCause { get; set; }

        /// <summary>
        /// 已结算
        /// </summary>
        public bool? IsSettled { get; set; }

        /// <summary>
        /// 已退货
        /// </summary>
        public bool? IsReturnGoods { get; set; }

        /// <summary>
        /// 已退款
        /// </summary>
        public bool? IsRefund { get; set; }

        /// <summary>
        /// 退货时间
        /// </summary>
        public DateTime? ReturnGoodsTime { get; set; }

        /// <summary>
        /// 退货签收时间
        /// </summary>
        public DateTime? ReturnGoodsSignTime { get; set; }

        /// <summary>
        /// 退货签收人Id
        /// </summary>
        public long? ReturnGoodsSignAdminId { get; set; }

        /// <summary>
        /// 退货签收人
        /// </summary>
        public string ReturnGoodsSignAdminName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateAdminName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 编辑人Id
        /// </summary>
        public long? EditAdminId { get; set; }

        /// <summary>
        /// 编辑人
        /// </summary>
        public string EditAdminName { get; set; }


    }
}
